/** @ingroup profile
 * @file profile.h
 * @brief functions to handle user profiles
 *
 * @author cameris camerisdump@gmail.com
 */

#ifndef _PROFILE_H_
#define _PROFILE_H_

#include "uart.h"
#include <stdint.h>

/** @brief setting storeable in profile */
struct profile {
	uint8_t backlight;
	struct uart_para uart;
	unsigned int localecho:1;
	unsigned int autowrap:1;
	unsigned int showcontrol:1;
	unsigned int screen:1;
	unsigned int newline:1;
	unsigned int bell:1;
};

extern struct profile curprofile;

void profile_init(void);
uint8_t profile_load(uint_fast8_t num);
void profile_save(uint_fast8_t num);
void profile_print_status(void);

#endif
